fn main() {
    /*     let x = 100;
    if x <= 50 {
        println!("true");
    } else if x <= 100 {
        println!("true true");
    } else {
        println!("false");
    }

    let condition = true;
    let num = if condition { 5 } else { 6 };
    println!("this value of num is:{}", num); */
    /*
    let mut counter = 0;
    let result = loop {
        counter += 1;
        if counter == 10 {
            break counter * 2;
        }
    };
    println!("this value of result is：{}", result); */
    /*
    let mut while_number = 3;
    while while_number != 0 {
        println!("{}", while_number);
        while_number -= 1;
    }
    println!("this value of while_number is :{}", while_number); */

    let arr: [i32; 6] = [1, 2, 3, 4, 5, 6];

    for ele in (arr.iter()).rev() {
        println!("this value is :{}", ele)
    }
}
